<script>
	import { user_info } from '@/config/user/api.js';
	import storge from '@/common/storge.js';
	export default {
		onLaunch: async function() {
			console.log('App Launch')
			const token = uni.getStorageSync('token');
			if(token){
				const userInfo =  await user_info();
				console.log('userInfo====',userInfo);
				storge.set('memberInfo',userInfo.data);
				this.$store.commit('setUserInfo', userInfo.data);
			};
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
@import 'uview-ui/index.scss';
@import url('./common/css/style/chatInterface.css');
page,
input,
button,
form,
view,
text {
	font-family: 'PingFang SC', 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

.bgf {
	background: #fff;
}

image {
	max-width: 100%;
	height: auto;
}

.ri {
	text-align: right;
}

.ct {
	text-align: center;
}

.fl {
	float: left;
}

.fr {
	float: right;
}

.clearfix::after {
	content: '';
	display: block;
	clear: both;
}

.rich-img {
	max-width: 100% !important;
	height: auto !important;
}
.flex-wrap {
	display: flex;
	flex-wrap: wrap;
}
.flex-bt {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.flex-ct {
	display: flex;
	justify-content: center;
	align-items: center;
}

.flex {
	display: flex;
	align-items: center;
}

.line1 {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.line2 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.line3 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.line4 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}
.loading-box {
	padding-top: 80rpx;
}
page{
	background: $f6;
}
.mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.bg-content {
	min-height: 100vh;
	background: $f6;
}
.container {
	margin: 0 2%;
}

.com-bot-box {
	position: fixed;
	bottom: 0;
	left: 0;
	background: #fff;
	padding: 20rpx 0 env(safe-area-inset-bottom);
	padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
	z-index: 33;
	width: 100%;
	/* #ifdef H5 */
		bottom: 50px;
	/* #endif */
}

.com-hei {
	padding: 20rpx 0 env(safe-area-inset-bottom);
	padding-bottom: calc(20rpx + env(safe-area-inset-bottom));

	&::after {
		display: block;
		content: '';
		height: 100rpx;
	}
}

.xy {
	padding: 20rpx 44rpx;
	font-weight: 300;
	font-size: $font-b;
	color: #17181a;
}

.phone-btn {
	font-size: 32rpx;
	color: $blue;
	height: 100%;
	border-left: 1px solid #e7e7e7;
}

button.phone-btn {
	padding: 0;
	background: #fff;
	line-height: 1;
	&::before,
	&::after {
		display: none;
		border: 0;
	}
}
.status-bar {
	padding-top: var(--status-bar-height);
}

.loadImg {
	flex-direction: column;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 30rpx;
	height: 260rpx;

	.img {
		width: 200rpx;
		margin-bottom: 30rpx;
	}

	text {
		color: #aaaaaa;
	}
}

.blue {
	color: $blue !important;
}

.bg-blue {
	background: $blue !important;
}
.red {
	color: $red !important;
}

.bg-org {
	background: #ec8d40;
}

.bg-red {
	background: #ff6060;
}

.price {
	color: $red;
}

.m-btn {
	border-radius: 14rpx;
	font-size: 32rpx;
	color: #fff;
	width: 220rpx;
	height: 76rpx;
}

.com-btn {
	font-size: 28rpx;
	color: #fff;
	height: 100rpx;
	border-radius: 100rpx;
}

.nodata {
	text-align: center;
	margin-top: 20vh;

	.img {
		width: 360rpx;
		margin-bottom: 50rpx;
	}

	.font {
		font-size: 32rpx;
		color: #b0b3c7;
	}
}

.bgf-wrap {
	background: #ffffff;
	border-radius: 16rpx;
}

.search-box {
	margin-bottom: 20rpx;
	background: $f6;
	border-radius: 100rpx;
	padding: 0 28rpx;
	height: 60rpx;

	.icon {
		width: 32rpx;
		margin-right: 20rpx;
	}

	.flex {
		flex: 1;
	}

	.input {
		font-size: $font-b;
		color: $black;
		padding-right: 15rpx;
		flex: 1;
	}

	.pla {
		color: #b5b5b5;
	}

	.s-btn {
		font-size: $font-b;
		color: $blue;
		padding-right: 20rpx;
		padding-left: 42rpx;
		border-left: 1px solid $blue;
	}
}
.pay-success {
	border-radius: 20rpx;
	background: #fff;
	position: relative;
	width: 660rpx;
	padding-bottom: 30rpx;
	.pay-tit {
		font-weight: bold;
	}
	.bg-img {
		width: 520rpx;
	}
	.min-btn{
		border-radius: 12rpx;
		height: 72rpx;
		width: 200rpx;
		font-size: 32rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
	}
	.bg-red.border{
		color: $red;
		background: transparent !important;
		border: 1px solid $red;
	}
	.font {
		position: absolute;
		width: 100%;
		bottom: 50rpx;
		left: 0;
		.p {
			font-size: 32rpx;
			color: #333333;
			margin-bottom: 10rpx;
		}
		.span {
			font-size: 26rpx;
			color: #666666;
			line-height: 40rpx;
		}
	}
	.min-btn {
		display: inline-flex;
		margin: 0 20rpx;
		margin-top: 40rpx;
		box-shadow: none !important;
	}
	.exit {
		width: 600rpx;
		padding: 80rpx 60rpx;
		padding-bottom: 50rpx;
		.h3 {
			font-size: 32rpx;
			color: #222222;
			font-weight: bold;
		}
		.num {
			width: 94rpx;
		}
	}
}
.pay-tit {
	text-align: center;
	font-size: 32rpx;
	color: #2f3541;
	padding: 30rpx;
	.cha-box {
		float: right;
		width: 100rpx;
		text-align: center;
		line-height: 100rpx;
		height: 100rpx;
	}
	.cha {
		width: 22rpx;
	}
}
</style>
